from typing import *

class Solution:
    def ways(self, pizza: List[str], k: int) -> int:
        m,n=len(pizza),len(pizza[0])

        def f(x,y,r,c,k):
            pass

        return f(0,0,m,n,k)